// $Id: etpro_menu_config.menu,v 1.1.2.4 2004/10/10 13:13:53 fretn Exp $

#include "ui/menudef.h"

// Defines //

//#define WINDOW_X		32
//#define WINDOW_Y		32
//#define WINDOW_WIDTH	576
//#define WINDOW_HEIGHT	416
#define WINDOW_X		16
#define WINDOW_Y		16
#define WINDOW_WIDTH	400
#define WINDOW_HEIGHT	458
#define GROUP_NAME		"grpetpromenuconfig"

// Macros //

#include "ui/menumacros.h"
		
///////////////////////////////////////////ETPRO CONFIG///////////////////////////////////////////

menuDef {
	name		"etpro_menu_config"
	visible		0
	fullscreen	0
	rect		WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
	style		WINDOW_STYLE_FILLED
	
	onESC {
		close etpro_menu_config;
		open etpro_menu_main
	}

#define SUBWINDOW_WIDTH		WINDOW_WIDTH-12

// Window //

	WINDOW( "CONFIGURATION", 94 )
	
// Popups //

	SUBWINDOW( 6, 32, (SUBWINDOW_WIDTH), 76, "POPUPS" )
	YESNO( 8, 48, (SUBWINDOW_WIDTH)-4, 10, "Small Popups:", .2, 8, "cg_drawSmallPopupIcons", "Use smaller (about half-height) popup icons" )
	MULTI( 8, 60, (SUBWINDOW_WIDTH)-4, 10, "Number of Popups:", .2, 8, "b_numPopups", cvarFloatList { "Default (5 or 8)" -1 "Disable Popups" 0 "1" 1 "2" 2 "3" 3 "4" 4 "5" 5 "6" 6 "7" 7 "8" 8 "9" 9 "10" 10 "11" 11 "12" 12 "13" 13 "14" 14 "15" 15 "16" 16 "17" 17 "18" 18 "19" 19 "20" 20 }, "Controls the maximum number of popup messages displayed on the HUD at once" )
	CVARFLOATLABEL( 8, 72, (SUBWINDOW_WIDTH)-4, 10, "b_popupTime", .2, ITEM_ALIGN_RIGHT, $evalfloat((SUBWINDOW_WIDTH)-4), 8 )
	SLIDER( 8, 72, (SUBWINDOW_WIDTH)-4, 10, "Popup Delay:", .2, 8, "b_popupTime" 1000 0 1500, "Defines the rate in milliseconds that popups will be delayed" )
	CVARFLOATLABEL( 8, 84, (SUBWINDOW_WIDTH)-4, 10, "b_popupStayTime", .2, ITEM_ALIGN_RIGHT, $evalfloat((SUBWINDOW_WIDTH)-4), 8 )
	SLIDER( 8, 84, (SUBWINDOW_WIDTH)-4, 10, "Popup Stay time:", .2, 8, "b_popupStayTime" 2000 0 4000, "Defines the time in milliseconds that popups will stay before fading" )
	CVARFLOATLABEL( 8, 96, (SUBWINDOW_WIDTH)-4, 10, "b_popupFadeTime", .2, ITEM_ALIGN_RIGHT, $evalfloat((SUBWINDOW_WIDTH)-4), 8 )
	SLIDER( 8, 96, (SUBWINDOW_WIDTH)-4, 10, "Popup Fade time:", .2, 8, "b_popupFadeTime" 2500 0 5000, "Defines the time in milliseconds that popups take to fade out" )
	
// Options //

	SUBWINDOW( 6, 114, (SUBWINDOW_WIDTH), 124, "OPTIONS" )
	EDITFIELD( 8, 130, (SUBWINDOW_WIDTH)-4, 10, "Text Color Filter:", .2, 8, "b_textcolorfilter", 36, 28, "Enter the color letters that you wish to be filtered to white" )
	YESNO( 8, 142, (SUBWINDOW_WIDTH)-4, 10, "Muzzle Flash:", .2, 8, "b_muzzleflash", "Controls whether the first-person muzzleflash is drawn" )
	YESNO( 8, 154, (SUBWINDOW_WIDTH)-4, 10, "Gibs:", .2, 8, "cg_gibs", "Change whether gibbed body parts are shown" )
	MULTI( 8, 166, (SUBWINDOW_WIDTH)-4, 10, "Bullet Tracers:", .2, 8, "b_tracers", cvarFloatList { "No" 0 "Yes" 1 "Other players' only" 2 }, "Controls whether bullet tracers are drawn" )
	YESNO( 8, 178, (SUBWINDOW_WIDTH)-4, 10, "Log Banners:", .2, 8, "b_logbanners", "Controls whether banner messages are always logged to the console" )
	MULTI( 8, 190, (SUBWINDOW_WIDTH)-4, 10, "Anti-Lag:", .2, 8, "b_antilag", cvarFloatList { "No" 0 "Yes, ET Pro Antilag" 1 "Yes, Stock ET Antilag" 2 }, "Controls whether your shots are lag-compensated by the server" )
	YESNO( 8, 202, (SUBWINDOW_WIDTH)-4, 10, "sv_cvar Backups:", .2, 8, "b_backupcvars", "Controls whether cvar backup files are generated when\nyour cvars do not match the server's restrictions" )
	YESNO( 8, 214, (SUBWINDOW_WIDTH)-4, 10, "Optimized Prediction:", .2, 8, "b_optimizeprediction", "Enables arQon's optimized prediction for increased FPS, especially on high ping connections" )
	YESNO( 8, 226, (SUBWINDOW_WIDTH)-4, 10, "Simple Items:", .2, 8, "b_simpleitems", "Enables items to be drawn as a 2d picture (RTCW style cg_simpleitems)" )

// Controls //

	SUBWINDOW( 6, 244, (SUBWINDOW_WIDTH), 160, "CONTROLS" )
	YESNO( 8, 260, (SUBWINDOW_WIDTH)-4, 10, "Predefined Demo Keys:", .2, 8, "b_predefineddemokeys", "Enables or disables the predefined demo keys" )
	MULTI( 8, 272, (SUBWINDOW_WIDTH)-4, 10, "'+activate' Leaning:", .2, 8, "b_noactivatelean", cvarFloatList { "Yes" 0 "No" 1 }, "Enables or disables the leaning with the '+activate' and the arrow keys" )
	BIND( 8, 284, (SUBWINDOW_WIDTH)-4, 10, "Open MultiView:", .2, 8, "mvactivate", "Opens multiview" )
	BIND( 8, 296, (SUBWINDOW_WIDTH)-4, 10, "Reset Max Speed:", .2, 8, "resetmaxspeed", "Resets the maximum speed on the speedometer" )
	BIND( 8, 308, (SUBWINDOW_WIDTH)-4, 10, "Reset Enemy SpawnTimer:", .2, 8, "resettimer", "Resets the enemy spawntimer to the default value its set at" )
	BIND( 8, 320, (SUBWINDOW_WIDTH)-4, 10, "Class Selection Menu:", .2, 8, "classmenu", "Opens the quick class selection menu" )
	BIND( 8, 332, (SUBWINDOW_WIDTH)-4, 10, "Team Selection Menu:", .2, 8, "teammenu", "Opens the quick team selection menu" )
	BIND( 8, 344, (SUBWINDOW_WIDTH)-4, 10, "Enemy SpawnTimer Menu:", .2, 8, "opentimerinput", "Opens the enemy spawntimer input menu" )
	BIND( 8, 356, (SUBWINDOW_WIDTH)-4, 10, "Trickjump Line Menu:", .2, 8, "tjl_menu", "Opens the trickjump line menu" )
	BIND( 8, 368, (SUBWINDOW_WIDTH)-4, 10, "Trickjump Ghost Menu:", .2, 8, "tjg_menu", "Opens the trickjump ghost menu" )
	BIND( 8, 380, (SUBWINDOW_WIDTH)-4, 10, "Select Fire-Team Member #7:", .2, 8, "selectbuddy 6", "Selects the 7th fireteam member" )
	BIND( 8, 392, (SUBWINDOW_WIDTH)-4, 10, "Select Fire-Team Member #8:", .2, 8, "selectbuddy 7", "Selects the 8th fireteam member" )

// Buttons //

	BUTTON( 6, WINDOW_HEIGHT-44, WINDOW_WIDTH-12, 18, "NEXT ^n>>^*", .3, 14, close etpro_menu_config ; open etpro_menu_config2 )
	BUTTON( 6, WINDOW_HEIGHT-24, WINDOW_WIDTH-12, 18, "BACK", .3, 14, close etpro_menu_config ; open etpro_menu_main )
}
